<include file="header"/>
<script type="text/javascript">
	$(function(){
		$('a[rel*=facebox]').facebox();
		$('#file_upload').uploadify({
			'uploader'		: '__PUBLIC__/swf/uploadify.swf',
			'script'		: '/index.php?s=/ajax/upload/',
			'cancelImg'		: '/uploadify/cancel.png',
			'folder'		: '__PUBLIC__/uploads',
			'queueID'		: 'upload_queue',
			'multi'			: true,
			'queueSizeLimit': 5,
			'auto'			: true,
			'onComplete'	: function(event, ID, fileObj, response, data) {
			var str = '<li><input name="images[]" type="text" value="'+response+'" size="50"/> ';
				str += '[<a rel="facebox" title="点击查看图片" href="__PUBLIC__/uploads/'+response+'">预览</a> ]';
				str += 	'[<a class="del_image" iid="'+response+'">删除</a>]</li>';
				$("#image_list").append(str);
				$('a[rel*=facebox]').facebox();
			}
		});

	})
</script>
<div class="explain_public">
<b class="red">注意：</b><br/>
1 所有带<span class="red">*</span>选项必填。<br/>
</div>
<form method="post" action="__URL__/update" id="contract_add">
<table width="98%" class="manager_public_tab" align="center" width="80%" border="0" cellpadding="0" cellspacing="1" >
<tr>
	<td><span class="red">*</span>景点名称</td>
	<td><input type="text" class="validate[required] text-input " id="name" value="{$scenic_info.name}" name="name" ></td>
</tr>
<tr>
	<td><span class="red">*</span>景点地址</td>
	<td>
		<div id="upload_queue">
			<input type="text" class="validate[required] text-input " id="address" value="{$scenic_info.address}" name="address" >
		</div>
	</td>
</tr>
<tr>
	<td><span class="red">*</span>景点照片</td>
	<td>
		<div id="image_list">
		<volist name="image_list" id="vo">
			<li>
				<input name="images[]" type="text" value="{$vo}" size="50"/>
				[<a rel="facebox" title="点击查看图片" href="__PUBLIC__/uploads/{$vo}">预览</a> ]
				[<a class="del_image" iid="{$vo.id}">删除</a>]
			</li>
		</volist>
		</div>
		<input id="file_upload" type="file"/>
	</td>
</tr>
<tr>
	<td><span class="red">*</span>最佳旅游时间</td>
	<td><textarea name="travel_time" rows="10" cols="80">{$scenic_info.travel_time}</textarea></td>
</tr>
<tr>
	<td><span class="red">*</span>当地住宿</td>
	<td><textarea name="local_stay" rows="10"  cols="80">{$scenic_info.local_stay}</textarea></td>
</tr>
<tr>
	<td><span class="red">*</span>当地饮食</td>
	<td><textarea name="local_diet" rows="10"  cols="80">{$scenic_info.local_diet}</textarea></td>
</tr>
<tr>
	<td><span class="red">*</span>景点介绍</td>
	<td><textarea name="content" rows="10"  cols="80">{$scenic_info.content}</textarea></td>
</tr>
<tr>
	<td colspan="2" align="center"><input type="submit"></td>
</tr>
</table>
<input type="hidden" name="id" value="{$Think.get.id}" />
</form>
<include file="footer"/>